package cn.rkylin.oms.goods.domain;

import cn.rkylin.oms.common.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 系统规格实体，对应oms_goods_sku表
 *
 * @author wangxing
 * @version 1.0.0
 * @created 2017-7-5
 */
public class GoodsSku extends BaseEntity {
    /**
     * 序列化id
     */
    private static final long serialVersionUID = 2311449988392774878L;

    /**
     * 规格id
     */
    private String skuId;

    /**
     * 主数据编码(规格编码)
     */
    private String skuMCode;

    /**
     * 规格商家编码
     */
    private String skuCode;
    /**
     * 规格名称
     */
    private String skuName;
    /**
     * 商品id
     */
    private String goodsId;
    /**
     * 商品商家编码
     */
    private String goodsCode;
    /**
     * 商品名称
     */
    private String goodsName;
    /**
     * 企业id
     */
    private String entId;
    /**
     * 标准售价
     */
    private BigDecimal salePrice;
    /**
     * 成本价
     */
    private BigDecimal costPrice;
    /**
     * 标准进价
     */
    private BigDecimal stanPurcPrice;
    /**
     * 允许赠品
     */
    private String giftsYn;
    /**
     * 虚拟商品
     */
    private String virtYn;
    /**
     * 规格描述
     */
    private String remark;
    /**
     * 删除标记
     */
    private String deleted;
    /**
     * 规格条码
     */
    private String barCode;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


    public String getSkuId() {
        return skuId;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public String getSkuName() {
        return skuName;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public String getEntId() {
        return entId;
    }

    public BigDecimal getSalePrice() {
        return salePrice;
    }

    public BigDecimal getCostPrice() {
        return costPrice;
    }

    public String getGiftsYn() {
        return giftsYn;
    }

    public String getVirtYn() {
        return virtYn;
    }

    public String getRemark() {
        return remark;
    }

    public String getDeleted() {
        return deleted;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public String getSkuMCode() {
        return skuMCode;
    }

    public String setSkuMCode(String skuMCode) {
        return this.skuMCode = skuMCode;
    }

    public String getBarCode() {
        return barCode;
    }


    public void setSkuId(String skuId) {
        this.skuId = skuId == null ? null : skuId.trim();
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode == null ? null : skuCode.trim();
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName == null ? null : skuName.trim();
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId == null ? null : goodsId.trim();
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode == null ? null : goodsCode.trim();
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public void setEntId(String entId) {
        this.entId = entId == null ? null : entId.trim();
    }

    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }

    public void setGiftsYn(String giftsYn) {
        this.giftsYn = giftsYn == null ? null : giftsYn.trim();
    }

    public void setVirtYn(String virtYn) {
        this.virtYn = virtYn == null ? null : virtYn.trim();
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public void setDeleted(String deleted) {
        this.deleted = deleted == null ? null : deleted.trim();
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public void setOuterCode(String outerCode) {
        this.skuMCode = skuMCode == null ? null : skuMCode.trim();
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode == null ? null : barCode.trim();
    }

    public BigDecimal getStanPurcPrice() {
        return stanPurcPrice;
    }

    public void setStanPurcPrice(BigDecimal stanPurcPrice) {
        this.stanPurcPrice = stanPurcPrice;
    }
    
}